de.ueberdosis.mp3info.id3v2
Class ID3V2Reader
java.lang.Object
|
+--de.ueberdosis.mp3info.id3v2.ID3V2Reader
- All Implemented Interfaces:
- Defines
- public class ID3V2Reader
- extends java.lang.Object
- implements Defines
Contains all functionality to read and decode an ID3v2-Tag.
Constructor Summary |
ID3V2Reader(java.io.RandomAccessFile raf,
long position)
Constructs a reader. |
Method Summary |
static de.ueberdosis.mp3info.id3v2.ID3V2Frame |
analyzeID3V2Frame(byte[] frame)
|
static de.ueberdosis.mp3info.id3v2.Header |
analyzeID3V2Header(byte[] header)
Tries to get basic information on an ID3V2Tag |
de.ueberdosis.mp3info.id3v2.Header |
getHeader()
|
de.ueberdosis.mp3info.id3v2.ID3V2Tag |
getV2Tag()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID3V2Reader
public ID3V2Reader(java.io.RandomAccessFile raf,
long position)
- Constructs a reader.
A reader is always connected to a certain file in which
an ID3v2-tag starts at the given position.
- Parameters:
raf
- the file this reader is connected to.position
- index where an ID3V2Header starts.
getHeader
public de.ueberdosis.mp3info.id3v2.Header getHeader()
getV2Tag
public de.ueberdosis.mp3info.id3v2.ID3V2Tag getV2Tag()
analyzeID3V2Header
public static de.ueberdosis.mp3info.id3v2.Header analyzeID3V2Header(byte[] header)
throws UndersizedException
- Tries to get basic information on an ID3V2Tag
- Parameters:
header
- 10 bytes that (probably) denote a ID3V2 header
- Returns:
- the V2Tag-header
UndersizedException
analyzeID3V2Frame
public static de.ueberdosis.mp3info.id3v2.ID3V2Frame analyzeID3V2Frame(byte[] frame)
throws UndersizedException,
NotAnID3V2FrameException
UndersizedException
NotAnID3V2FrameException